package day06;

import java.util.Calendar;
import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入一个年份");
        int year = sc.nextInt();
        Calendar c=Calendar.getInstance();
        c.set(year,2,1);
        c.add(Calendar.DAY_OF_MONTH,-1);
        int day=c.get(Calendar.DAY_OF_MONTH);
        if (day==28){
            System.out.println( year+"是平年");
        }else {
            System.out.println(year+"是闰年");
        }
    }
}
